import { get, post } from "../request";

const departmentApi = {
  addPoint: data => post('/map-inf/addPoint',data,{'Content-Type': 'multipart/form-data'}),
  updatePoint: data => post('/map-inf/updatePoint',data,{'Content-Type': 'multipart/form-data'}),
  delPoint(id) {
    return get(`map-inf/delPoint`,{id: id})
  },
  getMenuTree() {
    return get(`location-inf/getMenuTree`)
  },
  getPointList(params) {
    return get(`/map-inf/getPointList`,params)
  },
}

export default departmentApi